package 链表;

/**
 * @Author: LDeng
 * @Date: 2021-02-20 15:26
 */
public class test {
    public static void main(String[] args) {
        ListNode head =new ListNode(5);
        ListNode node4=new ListNode(4);
        ListNode node3=new ListNode(3);
        ListNode node2=new ListNode(2);
        ListNode node1=new ListNode(1);
        head.next=node4;
        node4.next=node3;
        node3.next=node2;
        node2.next=node1;

        _206_反转链表 obj = new _206_反转链表();
        ListNode node = obj.reverseList2(head);
        System.out.println(node);
    }
}
